USE [OHNEW]
GO

/****** Object:  Table [dbo].[D_PayInvoiceCleaning]    Script Date: 12/02/2012 13:41:10 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[D_PayInvoiceCleaning](
	[ID] [uniqueidentifier] NOT NULL,
	[MainID] [uniqueidentifier] NULL,
	[LineNumber] [int] NULL,
	[PaymentType] [uniqueidentifier] NULL,
	[TransactionTime] [datetime] NOT NULL,
	[Amount] [decimal](18, 2) NOT NULL,
                  [Notes] [varchar](255)  NULL,
 CONSTRAINT [PK_D_PayInvoiceCleaning] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[D_PayInvoiceCleaning] ADD  DEFAULT (newid()) FOR [ID]
GO


